package ui.graphical;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.WindowConstants;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Rectangle;
import javax.swing.ImageIcon;

public class SplashScreen extends JFrame {
	/**
	 * 
	 */
	private static final long serialVersionUID = 6071416534782722552L;

	public SplashScreen() {
		getContentPane().setBounds(new Rectangle(0, 0, 600, 450));
		getContentPane().setBackground(new Color(245, 245, 220));
		
		JLabel lblSplash = new JLabel("splash");
		lblSplash.setIcon(new ImageIcon(".\\images\\splashscreen.jpg"));
		getContentPane().add(lblSplash, BorderLayout.CENTER);
		setUndecorated(true);
		setResizable(false);
		setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
		setBounds(new Rectangle(0, 0, 600, 450));
		UIHelper.centreerFrame(this);
		setVisible(true);
	}

}
